package classesBancodeDados;

import java.io.Serializable;
import javax.persistence.Entity;
import javax.persistence.Id;

@Entity
public class Responsavel implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    private String cpf;

    private String ident;
    private String nome;
    private String telefone;
    private String endereco;

    public Responsavel(){
        cpf = "";
        ident = "";
        nome = "";
        telefone = "";
        endereco = "";
    }
    
    public Responsavel(String cpf, String ident, String nome, String telefone, String endereco) {
        this.cpf = cpf;
        this.ident = ident;
        this.nome = nome;
        this.telefone = telefone;
        this.endereco = endereco;
    }
    
    public String getCpf() {
        return cpf;
    }

    public void setCpf(String cpf) {
        this.cpf = cpf;
    }

    public String getIdent() {
        return ident;
    }

    public void setIdent(String ident) {
        this.ident = ident;
    }

    public String getNome() {
        return nome;
    }

    public void setNome(String nome) {
        this.nome = nome;
    }

    public String getTelefone() {
        return telefone;
    }

    public void setTelefone(String telefone) {
        this.telefone = telefone;
    }

    public String getEndereco() {
        return endereco;
    }

    public void setEndereco(String endereco) {
        this.endereco = endereco;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (cpf != null ? cpf.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof Responsavel)) {
            return false;
        }
        Responsavel other = (Responsavel) object;
        if ((this.cpf == null && other.cpf != null) || (this.cpf != null && !this.cpf.equals(other.cpf))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "classesBancodeDados.Responsavel[ cpf=" + cpf + " ]";
    }
    
}
